# Copyright 2007 Ed Catmur <ed@catmur.co.uk>
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# An eclass for modules on svn.gnome.org.

inherit subversion gnome2

SRC_URI=""

shopt -s extglob
MY_PN="${MY_P%-@(svn|cvs)}"
MY_PV_DATE="${PV##*_p?(re)}"
shopt -u extglob

ESVN_REPO_URI="http://svn.gnome.org/svn/${MY_PN}/trunk"
ESVN_PROJECT="${MY_PN}"

#ESVN_OPTIONS="-r {${MY_PV_DATE}}"

DEPEND="gnome-base/gnome-common
	dev-util/pkgconfig"

gnome2-svn_src_unpack() {
	subversion_src_unpack "$@"
}

gnome2-svn_src_compile() {
	./autogen.sh --prefix=/usr || die "autogen failed"
	gnome2_src_compile "$@"
}

DOCS="AUTHORS COPYING HACKING INSTALL NEWS TODO README"

EXPORT_FUNCTIONS src_unpack src_compile

